const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
    devServer: {
      port: 25040,
      open: true,
      proxy: {
        '/bw': {
          target: 'http://121.89.213.194:3001', // 后端服务器地址
          changeOrigin: true, // 修改请求头中的origin
          pathRewrite: { '^/bw': '' } // 重写路径，去除/api前缀
        }
      }
    }
  }
})
